package com.suse.service.community.kafka;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 事件
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-09-03 15:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Event", description="事件")
public class Event {

    private String topic;

    private Map<String, Object> content = new HashMap<>();

    public Object get(String name) {
        return content.get(name);
    }

    public void put(String name,Object value) {
        content.put(name,value);
    }

}
